<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('TOP5明细')" />
</head>
<body class="gray-bg">

<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="analysis-details-form">
                经营单元：<input type="hidden" name="dw" th:text="${dw}" th:value="${dw}"/>
                <span>&nbsp;</span>
                二级分类：<input type="hidden" name="fl" th:text="${fl}" th:value="${fl}"/>
            </form>
        </div>
        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-warning" onclick="$.table.exportExcel()" >
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped" style="width:100%" >
            <table id="bootstrap-table" ></table>
        </div>

    </div>
</div>
</div>

<th:block th:include="include :: footer" />
<th:block th:include="include :: echarts-js" />
<script th:inline="javascript">
    var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
    var datas = [[${@dict.getType('sys_common_status')}]];
    var prefix = ctx + "dataanalysis/top5/details";
    //alert(JSON.parse(map).param1]);
    console.log([[${param1}]]);
    $(function() {
        var options = {
            url: prefix+"/list",
            exportUrl: prefix + "/export",
            sortName: "lht",
            sortOrder: "desc",
            modalName: "TOP5问题明细",
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            columns: [
                {
                    field: 'lht',
                    title: '经营单元'
                },
                {
                    field: 'trade_id',
                    title: '投诉单号',
                    sortable: true
                },
                {
                    field: 'qd',
                    title: '投诉渠道'
                },
                {
                    field: 'ywlx',
                    title: '业务类型'
                },
                {
                    field: 'one_level',
                    title: '一级分类',
                    sortable: true
                },
                {
                    field: 'two_level',
                    title: '二级分类',
                    sortable: true
                },
                {
                    field: 'three_level',
                    title: '三级分类',
                    sortable: true
                },
                {
                    field: 'four_level',
                    title: '四级分类',
                    sortable: true

                },
                {
                    field: 'gszy',
                    title: '专业部门',
                    sortable: true

                }
                ,
                {
                    field: 'slnr',
                    title: '受理内容',
                    sortable: true,
                    visible: false

                }
                ,
                {
                    field: 'cljg',
                    title: '处理结果',
                    sortable: true,
                    visible: false

                },
                {
                    title: '受理情况',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="slqk(\'' + row.trade_id + '\')"><i class="fa fa-search"></i>查看</a>');
                        return actions.join('');
                    }
                }]
        };

        $.table.init(options);
    });
function slqk(trade_id) {
    var url = ctx + "dataanalysis/alldetails/slqk?trade_id="+trade_id;
    // alert(url);
    $.modal.open("查看工单情况", url);

}
</script>
</body>
</html>